<HTML><HEAD>
<!--
    -------------
    defaultStatus
    -------------
-->

<SCRIPT LANGUAGE="JavaScript"><!-- hide from old browsers

/*
    THE JAVASCRIPT COOKBOOK by Erica Sadun, webrx@mindspring.com
    Copyright (c)2000 by Charles River Media.  All Rights Reserved.
    
    This applet can only be re-used or modifed by license holders of the
    JavaScript Cookbook CD-ROM.  Credit must be given in the source
    code and this copyright notice must be maintained. If you do
    not hold a license to the JavaScript Cookbook, you may NOT
    duplicate or modify this code for your own use.

    Use at your own risk. No warranty is given or implied of the suitability 
    of this applet for any specific application. Neither Erica Sadun nor 
    Charles River Media will be held responsible for any unwanted effects 
    due to the use of this applet or any derivative. 
*/

function setStatus() 
{
    window.defaultStatus = "Move on top of the Link"
    window.status = "Please click me!"
}

<!-- done hiding --></SCRIPT></HEAD>

<BODY bgcolor="ffffff" link="0000ff" vlink="770077">
    
<FONT COLOR="007777"><H1><IMG SRC="../GRAFX/UTENS.JPG" WIDTH=80 HEIGHT=50
ALIGN = LEFT>Default Status</H1></FONT>

    <BLOCKQUOTE><FONT COLOR="770000">
    Move the mouse over the link below and then around the screen.
    </FONT></BLOCKQUOTE>
    
    <CENTER>
        <FONT SIZE=6><A HREF="#" 
            onMouseOver="setStatus();return true">
        Hello Link!</A></FONT>
    </CENTER>
    
    <FONT COLOR="007777"><H2>Discussion</H2></FONT>
    <FONT SIZE=4>
        Changes to <FONT COLOR="770000">window.status</FONT>
        are temporary. A persistant statusbar message can
        be created with <FONT COLOR="770000">window.defaultStatus</FONT>.
        This script creates a statusbar message which prompts
        the reader to return to the link. (Please note, this feature
        works extremely erratically with early versions of Netscape
        Navigator 2.0 and 3.0)<p>
    </FONT>        

    <b>Setting the status</b><p>
    <FONT COLOR="770000">
    function setStatus()<br>
    {<blockquote>
    window.defaultStatus = "Move on top of the Link"<br>
    window.status = "Please click me!"<br>
    </blockquote>}<p>
    </FONT>

    <b>The onMouseOver event</b><p>
    <FONT COLOR="770000">
    &lt;A HREF="#" onMouseOver="setStatus();return true"&gt;
    Hello Link!&lt;/A&gt;
    </FONT>


<h5>Copyright &copy;1996 by Charles River Media, All Rights Reserved</h5>
</BODY>
</HTML>